<%@ page language="java" import="java.util.*,entity.*,dao.*,dao.impl.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>北京科技大学天津学院校园论坛-首页</title>
        <meta name="author" content="梁龙">
        <style>
            /* body{background-repeat: no-repeat;} */
            *{margin:0;padding:0;}
            .divhead{
                height:300px; 
                text-align: center;
                /* border:5px solid red; */
                line-height:300px;
            }
            .divhead>p{
                /* font-size:70px;
                color:blue;
                font-family: "Times New Roman", Times, serif; */
                text-shadow:#FF0000 0 0 10px;
                color:white;
                font-size:60px
            }
            .divbody{
                height:200px;
				color:white; 
                /* border:5px solid red; */
            }
            table{
                width:500px;
                height:200px;
                margin-left:550px;
                background-color: #34435A;
                /* vertical-align: center; */
                margin：auto;
                border:5px solid gray;

            }
            td1{
                text-align: right;
                font-size:50px;
                width:100px;
            }
            td2{
                text-align: left;
                width:400px;
            }
            input{
				border-radius: 5px;
				border: 1px solid #D7D7D7;
				height: 30px;
				width: 300px;
            }
            .input-but{
                border-radius:5px;
                border:1px solid #D7D7D7;
                height:30px;
                width:70px;
            }
			.divbot{
				text-align:center;
				bottom:auto;
				height:300px;
				margin-top:100px;
			}
			.divbot>p{
				
				color:greenyellow;
			}
            .vuce{
                width: 50px;
                height: 40px;
                background-color: white;
                border: 1px solid blue ;
            }
        </style>
        <script>
            function check(){
                if(document.form1.uname.value ==""){
                    alert("用户名不能为空");
                    return false;
                }
                if(document.form1.upass.value ==""){
                    alert("密码不能为空");
                    return false;
                }
            }
        </script>
    </head>
    <body background="img/background.jpg">
       <div class="divhead">
        <p>北京科技大学天津学院校园论坛</p>
       </div>
        <div class="divbody">
         <form id="form1" name="loginForm" method="POST" onsubmit="return check()" action="manage/doLogin.jsp">
            <table>
                <tr>
                    <td class="td1" >用户名</td>
                    <td class="td2"><input type="text" name="userName"></td>
                </tr>
                <tr>
                    <td class="td1">密码</td>
                    <td class="td2" ><input name="userPass"type="password" maxlength="8"></td>
                </tr>
                <tr >
                    <td><input type="submit"  value="登录" class="input-but"></td> 

                    <td ><input type="button" value="注册" class="input-but" onclick="windows.open('reg.jsp')"></td>
                </tr>
                
            </table>
			<div class="divbot">
			 <p>温馨提示：登录需输入账号密码，需要提前注册</p>
			 </div>
         </form>
        </div>

    </body>
</html>